FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager"

docker network create flink-network


# 创建jobmanager
docker run --name=jobmanager --network cluster-network --publish 8081:8081 --env FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" flink:latest jobmanager


# 创建taskmanager
docker run --name=taskmanager --network cluster-network --env FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" flink:latest taskmanager

docker run --rm -it --network cluster-network -p 8081:8081 flink:latest /bin/bash


docker cp flink-connector-starrocks-1.2.8_flink-1.17.jar fervent_feistel:/opt/flink/lib

docker cp ./flink-cdc同步数据-mysql-to-starrocks/mysql-to-starrocks.yaml jobmanager:/home/

docker cp C:/dev/flink-cdc-3.0.0-bin/flink-cdc-3.0.0 jobmanager:/home/



bin/flink-cdc.sh /home/mysql-to-starrocks.yaml